const { merge } = require('webpack-merge');
const path = require('path');
const base = require('./webpack.base.config.js');

module.exports = merge(base, {
    mode: "development",
    devtool: 'inline-source-map',
    devServer: {
        overlay: true, // 加上这个
        port: "3000",
        contentBase: [path.join(__dirname, '../src'), path.join(__dirname, '../dist')],
    }
})
